<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class TS_Log {

    private static $instance;
    private $log_class = "";

    public function __construct($classname) {
        $this->log_class = $classname;
    }

    public function log($level, $message) {
        return log_message($level, "[" . $this->log_class . "] " . $message);
    }

    public static function &get_instance() {
        return self::$instance;
    }

}
